from .models import etyn

def current_etyn(request):#上下文注入
    try:
        current_user = etyn.objects.get(mtkg=request.session.get('username'))
    except:
        current_user = None

    return {
        'current_etyn':current_user
    }